//
//  MapManager.h
//  BiuWeather
//
//  Created by 楼楚 on 16/2/29.
//  Copyright © 2016年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>
@import CoreLocation;
@class MapManager;

@protocol MapManagerLocationDelegate <NSObject>

@optional

- (void)mapManager:(MapManager *)manager didUpdateAndGetLastCLLocation:(CLLocation *)location;
- (void)mapManager:(MapManager *)manager didFailed:(NSError *)error;
- (void)mapManagerServerClosed:(MapManager *)manager;

@end

@interface MapManager : NSObject
@property (nonatomic, weak)     id<MapManagerLocationDelegate> delegate;
@property (nonatomic, readonly) CLAuthorizationStatus          authorizationStatus;
@property (nonatomic,strong) CLPlacemark *placemark;


- (void)start;
- (void)getData;
- (void) getPlace;
@end
